package com.xkcoding.task.config.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public class PersonGroupOperation {

  @JsonProperty("addPersonInfos")
  private List<AddPersonInfosDTO> addPersonInfos;
  @JsonProperty("delPersonInfos")
  private List<DelPersonInfosDTO> delPersonInfos;
  @JsonProperty("personGroupId")
  private String personGroupId;

  @NoArgsConstructor
  @Data
  public static class AddPersonInfosDTO {
    @JsonProperty("personId")
    private String personId;
    @JsonProperty("orgindexCode")
    private String orgindexCode;
  }

  @NoArgsConstructor
  @Data
  public static class DelPersonInfosDTO {
    @JsonProperty("personId")
    private String personId;
    @JsonProperty("orgindexCode")
    private String orgindexCode;
  }
}
